package com.xindz.hgq.database.realm.bean;

import java.util.Date;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * @name HGQBase
 * @class name：com.xindz.hgq.database.realm.bean
 * @describe describe
 * @anthor XINDZ
 * @time 2018/5/29 15:05
 * @change
 * @chang time
 * @class describe
 */
public class User extends RealmObject {
    public User() {
    }

    public User(String objecId, String username, Integer sex, Boolean mobilePhoneVerified, Date createdAt) {
        this.objecId = objecId;
        this.username = username;
        this.sex = sex;
        this.mobilePhoneVerified = mobilePhoneVerified;
        this.createdAt = createdAt;
    }

    @PrimaryKey
    private String objecId;

    private String username;

    private Integer sex;

    private Boolean mobilePhoneVerified;

    private Date createdAt;

    public String getObjecId() {
        return objecId;
    }

    public void setObjecId(String objecId) {
        this.objecId = objecId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Boolean getMobilePhoneVerified() {
        return mobilePhoneVerified;
    }

    public void setMobilePhoneVerified(Boolean mobilePhoneVerified) {
        this.mobilePhoneVerified = mobilePhoneVerified;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "User{" +
                "objecId='" + objecId + '\'' +
                ", username='" + username + '\'' +
                ", sex=" + sex +
                ", mobilePhoneVerified=" + mobilePhoneVerified +
                ", createdAt=" + createdAt +
                '}';
    }
}
